#!coding=utf-8

import threading

class MyThread(threading.Thread):
    def __init__(self, name):
        super(MyThread,self).__init__()
        self.name = name
    def run(self):
        print("thread %s is running..." % self.name)

thread = MyThread("demo_thread2")
thread.start()